﻿// (c) Copyright Microsoft Corporation.
// This source is subject to [###LICENSE_NAME###].
// Please see [###LICENSE_LINK###] for details.
// All other rights reserved.

using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace EnsureWeb.Controls
{
    /// <summary>
    /// The TimelineMark class.
    /// </summary>
    public class TimelineMark : ITimelineMark
    {
        /// <summary>
        /// The date of the Mark.
        /// </summary>
        private DateTime markDate;

        /// <summary>
        /// The element of the mark.
        /// </summary>
        private Rectangle markElement;

        /// <summary>
        /// Initialize a new instance of the TimelineMark class.
        /// </summary>
        public TimelineMark()
        {
            markElement = new Rectangle()
            {
                Width = 30,
                Height = 30,
                Fill = new SolidColorBrush(Colors.Red),
            };
        }

        /// <summary>
        /// Gets or sets the Time.
        /// </summary>
        public DateTime Time
        {
            get
            {
                return markDate;
            }

            set
            {
                markDate = value;
            }
        }

        /// <summary>
        /// Gets the Element.
        /// </summary>
        public UIElement Element
        {
            get
            {
                return markElement;
            }
        }
    }
}
